/***************************************************
//Filename:     generictype.h                      //
//Version:	    V1.0							  //
//Published:	2005-12-04 15:30			      //
//Author:		Hua Weidong						  //


//         READ ME
**2005-12-04 15:30
1. Version V1.0 is published


****************************************************/
#ifndef	___GENERICTYPE_H___
#define	___GENERICTYPE_H___

#ifndef	TRUE
#define	TRUE	1
#endif
#ifndef	FALSE
#define	FALSE	0
#endif

#ifndef	true
#define	true	TRUE
#endif
#ifndef	false
#define	false	FALSE
#endif

typedef unsigned char 	BOOL;
//typedef unsigned char   bool;
typedef unsigned char	uint8;
typedef unsigned short	uint16;
typedef unsigned int	uint32;
typedef unsigned long long	uint64;
typedef	signed char int8;
typedef signed short	int16;
typedef	signed int	int32;
typedef signed long long int64;
typedef char	char8;
typedef int	char16;
typedef	float	float32;
//#pragma	FLOAT64
typedef double	float64;
typedef struct _VECT_DATA{
	float32	x;
	float32	y;
	} VECT_DATA;


typedef unsigned char 	u8;
typedef unsigned short 	u16;
typedef unsigned long 	u32;
typedef short	 	s16;

//typedef void (SEND_HANDLER)(const void *pBuff,uint16 size);
//typedef uint16 (RECEIVE_HANDLER)(void *pBuff,uint16 size);
typedef void (DELAY_HANDLER)(uint32 ms);

typedef	long		HANDLE;

#define	INVALID_HANDLE_VALUE	((HANDLE)-1)

#endif
